// main.js
import { createApp } from 'vue';
import App from './App.vue';
import http from './utils/http';
import router from './router'

const app = createApp(App);

// 将 http 实例挂载到全局属性
app.config.globalProperties.$http = http;
app.use(router) // 挂载路由
app.mount('#app');